ES问题 您所在的位置:网站首页 a head还是an head ES问题

ES问题

2023-12-18 04:39| 来源: 网络整理| 查看: 265

ES问题-head-master连接ES跨域问题解决 报错信息解决办法

报错信息

Request Header:

content-encoding: gzip content-length: 327 content-type: application/json; charset=UTF-8 Warning: 299 Elasticsearch-7.14.0-dd5a0a2acaa2045ff9624f3729fc8a6f40835aa1 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-minimal-setup.html to enable security." X-elastic-product: Elasticsearch

在这里插入图片描述

解决办法

由报错提示可以知道在使用elasticsearch-head-master连接elasticsearch时出现跨域问题,那么就需要我们找到elasticsearch下的elasticsearch.yml文件进行跨域配置,elasticsearch.yml在elasticsearch\config文件夹下。

http.cors.enabled: true http.cors.allow-origin: "*"

配置好以后就可以解决head-master连接ES的跨域问题。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有